package com.tedu.pojo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import pojo.User;

@Controller  //springmvc框架识别控制器
public class JsonController {

    @RequestMapping(value = "/login",produces = "text.html;charset=utf-8")
    @ResponseBody
    public User login(User user){
        System.out.println(user);
        return user;
    }

}
